#include "Heap.h"



int main()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 15);
	HeapPush(&hp, 4);
	HeapPush(&hp, 6);
	HeapPush(&hp, 65);
	HeapPush(&hp, 7);
	HeapPush(&hp, 2);
	HeapPush(&hp, 1);

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	return 0;
}